package com.inventive.jmscache.server;

/**
 * @author Grant Little <grant.little@coreservices.com.au>
 */
public interface BackendTopic {

    void publish(String messageId, JmsCacheMessage message);
    JmsCacheMessage poll(String subscriptionId);
    JmsCacheMessage poll(String subscriptionId, long timeoutMillis);
}
